//  加载数值预报风羽图
export function loadNumericalWindFeather(map: any, layerId: string, geojsonData: any) {
  // 添加 GeoJSON 数据源
  map.addSource(layerId, {
    type: "geojson",
    data: geojsonData
  });
  const geojsonLayer = {
    id: layerId,
    type: "symbol",
    source: layerId,
    layout: {
      "icon-image": [
        "concat", // 连接字符串
        "WINDS", // 前缀
        ["get", "WindSpeed"]
      ], // 从属性中获取图标名称
      "icon-rotate": ["get", "WindDirection"], // 从属性中获取旋转角度
      "icon-size": 1,
      "icon-allow-overlap": false,
      "icon-ignore-placement": false,
      "icon-offset": [0, 0],
      "icon-anchor": "center",
      "icon-pitch-alignment": "viewport" // 或'map'根据需求
    }
  };
  return geojsonLayer;
}
